package com.catazy.wanandroid.module_content.webclient

import com.just.agentweb.WebViewClient

/**
 * 作者: Tao
 * 日期: 2024/4/12
 * 时间: 10:18
 * 描述:
 */
object WebClientFactory {

    // 简书网址
    val JIAN_SHU = "https://www.jianshu.com"

    fun create(url: String): WebViewClient {
        return when {
            url.startsWith(JIAN_SHU) -> JianShuWebClient()
            else -> BaseWebClient()
        }
    }
}